type Person = object
  name: string

proc getName(p:Person):string = p.name

var p1=Person(name:"damao")
echo p1.getName
echo getName(p1)
echo getName p1
